package model.tiles;

import model.Smurf;

public class EarthTile extends AbstractTile {

	public EarthTile(){
		setIcon("images//tile_earth.png");
		setFriction(0.5);
	}

	@Override
	public void action(Smurf smurf) {
		smurf.setY(smurf.getY()-smurf.getYSpeed());
		smurf.setYSpeed(smurf.getYSpeed()*0.5);
		smurf.setX(smurf.getX()-smurf.getXSpeed());
		smurf.setXSpeed(smurf.getXSpeed()*0.5);
	}

	@Override
	public boolean canJump() {
		return false;
	}
	
}
